
package com.zmks.jkgj.xuexiao.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

 
@Entity
@Table(name = "crct_busi_score_item")
public class CrctBusiScoreItem implements Serializable {
	/**
	 * 序列化版本兼容性
	 */
	private static final long serialVersionUID = 1L;

	private Long id;
	private Long oid;
	private Long sheet_sch_oid;
	private Long sheet_cla_oid;
	private Long student_oid;
	private String subject;
	private String score_num;
	private Date create_date;
	private Date modify_date;
	
	 public Long getOid() {
		return oid;
	}
    public void setOid(Long oid) {
		if(oid!=null)
		this.oid = oid;
	   else
     	this.oid = id;	
		
	}
	public Long getSheet_sch_oid() {
		return sheet_sch_oid;
	}
	public void setSheet_sch_oid(Long sheet_sch_oid) {
		this.sheet_sch_oid = sheet_sch_oid;
	}
	public Long getSheet_cla_oid() {
		return sheet_cla_oid;
	}
	public void setSheet_cla_oid(Long sheet_cla_oid) {
		this.sheet_cla_oid = sheet_cla_oid;
	}
	public Long getStudent_oid() {
		return student_oid;
	}
	public void setStudent_oid(Long student_oid) {
		this.student_oid = student_oid;
	}
	public String getScore_num() {
		return score_num;
	}
	public void setScore_num(String score_num) {
		this.score_num = score_num;
	}
	public Date getCreate_date() {
		return create_date;
	}
	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}
	public Date getModify_date() {
		return modify_date;
	}
	public void setModify_date(Date modify_date) {
		this.modify_date = modify_date;
	}
	@Id
	@Column(name = "ID")
	@TableGenerator(name = "ID_GENERATOR", // 生成策略名称
	table = "crct_config_oid_sequence", // 生成的表名
	pkColumnName = "name", // 主键的列名
	pkColumnValue = "crct_busi_score_item", // 主键的值
	valueColumnName = "value", // 生成的值 列名
	initialValue = 1, // 主键初识值
	allocationSize = 1 // 主键每次增加的大小
	)
	@GeneratedValue(strategy = GenerationType.TABLE, // 指定主键生成策略
	generator = "ID_GENERATOR")
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}



	


}
